package com.yc.web.hystrix;

import com.yc.entity.Cart;
import com.yc.entity.Category;
import com.yc.entity.Categorysecond;
import com.yc.entity.Product;
import com.yc.vo.Result;
import com.yc.web.OrderAction;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderActionImpl implements OrderAction {
    @Override
    public Result queryAll() {
        List< Category > list=new ArrayList<>();
        Category category=new Category();
        category.setCname("男装女装");
        category.setCid(1);
        list.add(category);
        category.setCname("鞋靴箱包");
        category.setCid(2);
        list.add(category);
        category.setCname("运动户外");
        category.setCid(3);
        list.add(category);
        Result result=new Result(1,"降级的分类数据",list);

        return result;
    }

    @Override
    public Product getProduct(int id) {
        return null;
    }

    @Override
    public List< Product > getnewproduct() {
        return null;
    }

    @Override
    public List< Product > gethotproduct() {
        return null;
    }

    @Override
    public List< Product > getclistByCsid(int csid) {
        return null;
    }

    @Override
    public List< Product > getclistByCid(int cid) {
        return null;
    }

    @Override
    public List< Category > getCategory() {
        return null;
    }

    @Override
    public List< Categorysecond > getCategorysecond(int cid) {
        return null;
    }

    @Override
    public Result addCart(Cart cart) {
        return null;
    }

    @Override
    public List< Cart > getCart(int uid) {
        return null;
    }

    @Override
    public List< Cart > queryByUid(int uid) {
        return null;
    }
}
